<?php
header("Content-Type: text/html; charset=UTF-8");
//http://localhost/restful-api-demo/index.php
require_once('./lib/users.php');
//require_once('./lib/Content.php');
use lib\users\users;
$user = new users();

try{

//$user->register('admin4','admin');
$user->login('admin4','admin');
//$content = new Content();
$data = array();
$data['title'] = "'mac常用资料'";
$data['content'] = "'mac常用资料详细内容'";
$data['userid'] = 2;
$data['ctime'] = time();


$edata = array();
$edata['title'] = "'mac常用资料修改'";
//$content->add($data);
//$content->edit(2,$edata);
//$content->del(2);
//
//$content->getList(2);
//
}catch(Exception $e){
	var_dump($e);
}


